package com.wiz.web.service;

import com.wiz.data.vo.to.MabDataTO;
import com.wiz.web.manager.ServiceManager;
import com.wiz.web.vo.criteria.AuthorityCriteria;
import com.wiz.web.vo.to.AuthorityTO;


public interface AuthorityService extends BasicService {
	/**
	 * 处理客户端返回信息
	 * @param stationId
	 * @param mabTO
	 * @param serviceManager
	 */
	public void handleResquest(String stationId,MabDataTO mabTO,ServiceManager serviceManager);

	/**
	 * 获得冻结金额
	 * @return
	 */
	public double getFrozenMoney(AuthorityCriteria criteria, AuthorityTO to) throws Exception;
	
	/**
	 * 积分授权
	 * @param criteria
	 * @return
	 */
	public double getPointAuthority(AuthorityCriteria criteria);
	
	/**
	 * 获取授权
	 * @param frozenAmount
	 * @param fpId
	 * @param to
	 * @return
	 */
	public String getFuellingAuthority(double frozenAmount, String fpId, AuthorityTO to);
	
	/**
	 * 取消权限
	 * @param stationId
	 * @param auth
	 * @return
	 */
	public String cancelAuth(AuthorityCriteria criteria) throws Exception;
	
	/**
	 * 通过微信渠道获取加油权限
	 * @return
	 */
	public String getWxFuellingAuth(AuthorityCriteria criteria) throws Exception;
}
